//package com.yan.common.service.timetask;
//
//
//import com.yan.utils.HttpUtils;
//import org.slf4j.Logger;
//import org.slf4j.LoggerFactory;
//import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.stereotype.Service;
//
///**
// * Created by yanl_ on 2018/4/11.
// */
//
//@Service
//public class TestScheduled {
//
//    private static Logger logger = LoggerFactory.getLogger(TestScheduled.class);
//
//    @Scheduled(cron = "*/5 * * * * ?")
//    public void testScheduledOne() {
//        logger.info("start............");
//        try {
//            String content = HttpUtils.getResponseContent("http://www.cnblogs.com/zj0208/p/7018098.html", "key", "");
//            logger.info("content:{}", content);
//        } catch (Exception e) {
//            logger.info(e.getMessage());
//        }
//        logger.info("over............");
//
//    }
//
//
//    @Scheduled(cron = "*/5 * * * * ?")
//    public void testScheduledTwo() {
//        logger.info("...................test............");
//    }
//
//
//}
